package com.wy.dao.music;

import com.domain.bean.music.MusicUser;
import com.domain.bean.music.Song;
import com.wy.dao.sys.BaseDAO;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:网易云音乐用户
 * Author : wangyu
 * Date: 2018-03-05
 * Time: 13:58
 */
public interface MusicUserDAO extends BaseDAO<MusicUser,Integer> {

    @Query(value = "SELECT * FROM `music_user` WHERE times = ?1 LIMIT 0,30000;" ,nativeQuery = true)
    List<MusicUser> selectList(int time);

    MusicUser findByCode(String code);
}
